package jihe;

public class Stu<N,A,S> {
    private N name;    //姓名
    private A age;    //年龄
    private S sex;    //性别
    //创建类的构造函数
    public Stu(N name,A age,S sex)
    {
        this.name=name;
        this.age=age;
        this.sex=sex;
    }
    //下面是上面3个属性的setter/getter方法
    public N getName()
    {
        return name;
    }
    public void setName(N name)
    {
        this.name=name;
    }
    public A getAge()
    {
        return age;
    }
    public void setAge(A age)
    {
        this.age = age;
    }
    public S getSex()
    {
        return sex;
    }
    public void setSex(S sex)
    {
        this.sex=sex;
    }
}
